package com.hulizuofang.wol.chat.client.data;

import java.io.Serializable;

public class ChatUser implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String login;
	private boolean active;
	
	protected ChatUser() {/* GWT only constructor */}
	
	public ChatUser(String id, String login, boolean active) {
		this.id = id;
		this.login = login;
		this.active = active;
	}

	public ChatUser(String login) {
		this(null,login,true);
	}
	public String getId() {
		return id;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	
	@Override
	public String toString() {
		return "(id: "+id+", login: "+login+", active: "+active+")";
	}
}